package com.cyt.gen.model.po;

import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 表单自定义-搜索栏信息实体类
 *
 * @author rong yuan
 * @date 2019-4-16 8:44:39
 */
@Data
@NoArgsConstructor
@Table(name = "cyt_gen_form_field")
public class FormField implements Serializable {

    /**
     * 主键ID
     */
    @Id
    private String id;

    /**
     * 数据库表名称
     */
    @Column(name = "table_name")
    private String tableName;

    /**
     * 字段
     */
    @Column(name = "field")
    private String field;

    /**
     * 名称
     */
    @Column(name = "name")
    private String name;

    /**
     * 排序
     */
    @Column(name = "order_num")
    private int orderNum;

    /**
     * 类型
     */
    @Column(name = "type")
    private String type;

    /**
     * 字典码
     */
    @Column(name = "code")
    private String code;

    /**
     * 时间格式
     */
    @Column(name = "format")
    private String format;

    /**
     * 是否关联字段
     */
    @Column(name = "is_related")
    private String isRelated;

    /**
     * 关联表
     */
    @Column(name = "related_table")
    private String relatedTable;

    /**
     * 关联字段
     */
    @Column(name = "related_field")
    private String relatedField;

    /**
     * 关联展示字段
     */
    @Column(name = "related_show_field")
    private String relatedShowField;

    /**
     * 分类：1-搜索字段；2-展示字段；3-表单字段
     */
    @Column(name = "classify")
    private String classify;

    /**
     * 是否必填：1-是；2-否
     */
    @Column(name = "not_blank")
    private String notBlank;

    /**
     * 是否单行：1-是；2-否
     */
    @Column(name = "single_row")
    private String singleRow;
}